class Solution {
public:
    int maxAdjacentDistance(vector<int>& nums) {
        
        int n=nums.size()-1;
        int ret=abs(nums[0]-nums[n]);
        for(int i=1;i<=n;i++)
        {
			ret=max(ret,abs(nums[i]-nums[i-1]));
		}
		return ret;
    }
};
